package com.example.mapper.one_to_one;

import com.example.bean.Person;
import org.apache.ibatis.annotations.Select;

/**
 * @program: mybatis_maven
 * @description:
 * @author: zhanghz001
 * @create: 2020-11-10 19:52
 **/
public interface PersonMapper {
    @Select("select *\n" +
            "from person p\n" +
            "where p.id = #{id};")
    Person selectById(Integer id);

}
